”)}})},initImagePreview:函数(){函数(){var i = []; l(“.lw_preview_image").每个(function(){var e=l(this);var t=e.find("img");i.push({src:e.attr("href"),caption:s.lib.htmlDecode(t.attr("data-caption")||t.attr("alt")||"")})});return i}i.on("click",".lw_preview_image",function(e){e.preventDefault (); var t = l(这),i = t.find("img").eq(0).attr("alt");if(t.hasClass(“lw_disable_preview”))返回true;如果(我)“图像”= = =我= " ";.previewImage(t.attr(“href”),我());还真})},initDetailPreview:函数(){l (
').这是您要求的预览版.
Click to close window').prependTo(i);i.addClass("lw_is_preview");l(".lw_close_window").on("click",function(){window.close(),返回false})} initIngredientsPreviewNotification:函数(){如果(s.ingredients_preview){var e;e="
Live Preview 您正在预览未发布的更改."+'
turn off';i.addClass("has_lw_notice").notify({id:"lw_is_hidden_message",message:e,type:"success",close_button:false,slideIn:0,custom_class: " lw_ingredients_live_preview "}); l(“.js-turn-off-live-preview").on("click",function(){l.ajax({url:"/livewhale/backend.php",data:{livewhale:"ajax",功能:“disableIngredientsPreview”},method:"GET",dataType:"json",success:function(e){e=e||{};if(l.isEmptyObject(e)||e.error){s.prompt("Error",e."无法禁用预览模式。.","warning")}else{window.location.reload(true)}})})},initHiddenPageNotification:function(){var e;e="此页面被标记为隐藏. It is not visible to the public.";i.addClass("has_lw_notice").notify({id:"lw_is_hidden_message",message:e,type:"warning",close_button:false,slideIn: 0}); var t = l(“# lw_is_hidden_message”).outerHeight()-2;l("#lw_toolbar").动画({:t}, 180); l(“# lw_page”).动画({marginTop:“+ =”+ t +“px”},180)},initSubnavToggle:函数(){var e = l(“.lw_subnav_toggle");if(!e.length)return;e.each(function(){l(this).(“点击”,function () {var e = l(这).next("ul");if(e.is(":visible")){e.slideUp(400,function(){l(this).closest("li").removeClass(“lw_expanded”);l(这).attr(“aria-hidden”,“真正的”);l(这).prev(".lw_subnav_toggle").attr(“aria-expanded”,“假”)})}{如果(l(“其他.lw_subnav_toggle").next("ul:visible").length){l(".lw_subnav_toggle").next("ul:visible").slideUp(400,function(){l(this).closest("li").removeClass(“lw_expanded”);l(这).attr(“aria-hidden”,“真正的”);l(这).prev(".lw_subnav_toggle").attr("aria-expanded","false");e.slideDown(650,function(){l(this).closest("li").addClass("lw_expanded");l(this).attr(“aria-hidden”,“假”),l(这).prev(".lw_subnav_toggle").attr(“aria-expanded”,“真正的”)})}}{e.slideDown(650,function(){l(this).closest("li").addClass("lw_expanded");l(this).attr(“aria-hidden”,“假”),l(这).prev(".lw_subnav_toggle").attr(“aria-expanded”,“真正的”)})}}}})}返回false, initPayments:函数(){如果(!l(".lw_payments").length)return;l.getScript(s.liveurl_dir +”/资源/ js / livewhale /主题/核心/脚本/支付.js",function(){s.payments.init ()})}, initDateAgoElements:函数(){如果(!l(".lw_date_ago").length)return;function e(){l.each(l(".lw_date_ago”)、功能(){如果(l(这).attr("data-date")){var e=new Date(l(this)).attr("data-date"));if(e&&!isNaN(e.getTime())){var t=new Date,i=(t.getTime()-e.getTime())/1e3,a=Math.floor(i/86400),n=Math.floor((i-a*86400)/3600),o=Math.((我* 86400 - n * 3600) / 60), s =数学.地板(我* 86400 3600 - o - n * * 60); l(这).html(a>=1?a+" day"+(a!==1?"s":"")+" ago":n>=1?n+" hour"+(n!==1?"s":"")+" ago":o>=1?o+" minute"+(o!==1?"s":"")+" ago":s>=1?s+" second"+(s!==1?“s”:“”)+”前 ":"")}}})} e (); setInterval(函数(){e ()},6e4)},initEventDetailPage:函数(){var e = l (" # lw_cal_add_to_calendar, .lw_cal_add_to_calendar");if(!e.length)return;e.on("click"," > a",function(e){e.preventDefault (); var t = l(这),i = t.parent().find("ul");if(i.is(":visible")){t.removeClass("lw_active")}else{t.addClass("lw_active")}i.slideToggle(200);return true}).on("click","li",function(e){e.preventDefault();var t=l(this).find(".lw_cal_icon"),i;if(t.hasClass("lw_cal_google")){i=s.lib.getAddToGoogleLink(s.details_data)}else if(t.hasClass("lw_cal_yahoo")){i=s.lib.getAddToYahooLink(s.details_data)}else if(t.hasClass("lw_cal_ical")||t.hasClass("lw_cal_outlook")){i=s.liveurl_dir+"/ical/events/id/"+s.details_id+"/outlook/1"}window.开放(我,“SaveToCalendar”)})},initDetailPageMaps:函数(){如果(!s.is_details_template||!s.latitude||!s.longitude||!l(".details_map").length){return false}var e=l(".details_map");var t=e.attr("data-aspect-ratio")?e.attr(“data-aspect-ratio”):“1:1”;var i = e.attr("data-zoom")?e.attr("data-zoom"):17;e.lwGoogleMapsEmbed({api_key:s.maps_api_key,latitude:s.latitude,longitude:s.经度,aspect_ratio: t,变焦:我})},showTestingMessage:函数(){var e;我.通知({id:“lw_testing_message”消息:“
这已被标记为测试页.类型:“警告”,close_button:假的,slideIn: 0}); e = l(“# lw_testing_message”).outerHeight();i.css("margin-top",e);i.on("pageEditorInit.lw",function(){i.css("margin-top",0);l("#lw_page").css(“margin-top”、“+ =”+ e); l(“# lw_toolbar”).css("top",e)})}};l(function(){s.frontend.init();if(s.is_hidden_page){s.frontend.initHiddenPageNotification()}s.frontend.}) (livewhale initIngredientsPreviewNotification ()}).jQuery||window.jQuery,livewhale);
/*资源ID: 75aa3fc9331361725c5d7ea5479.location.href.replace() */
/* Resource not found (). */
/*资源ID: 815417267f76f6f460a4a61f9db ([) */
/* Resource not found (). */